package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ExamResultDetailsMapper;
import com.ruoyi.system.domain.ExamResultDetails;
import com.ruoyi.system.service.IExamResultDetailsService;
import com.ruoyi.common.core.text.Convert;

/**
 * 考试结果Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-30
 */
@Service
public class ExamResultDetailsServiceImpl implements IExamResultDetailsService 
{
    @Autowired
    private ExamResultDetailsMapper examResultDetailsMapper;

    /**
     * 查询考试结果
     * 
     * @param id 考试结果主键
     * @return 考试结果
     */
    @Override
    public ExamResultDetails selectExamResultDetailsById(Long id)
    {
        return examResultDetailsMapper.selectExamResultDetailsById(id);
    }

    /**
     * 查询考试结果列表
     * 
     * @param examResultDetails 考试结果
     * @return 考试结果
     */
    @Override
    public List<ExamResultDetails> selectExamResultDetailsList(ExamResultDetails examResultDetails)
    {
        return examResultDetailsMapper.selectExamResultDetailsList(examResultDetails);
    }

    /**
     * 新增考试结果
     * 
     * @param examResultDetails 考试结果
     * @return 结果
     */
    @Override
    public int insertExamResultDetails(ExamResultDetails examResultDetails)
    {
        return examResultDetailsMapper.insertExamResultDetails(examResultDetails);
    }

    /**
     * 修改考试结果
     * 
     * @param examResultDetails 考试结果
     * @return 结果
     */
    @Override
    public int updateExamResultDetails(ExamResultDetails examResultDetails)
    {
        return examResultDetailsMapper.updateExamResultDetails(examResultDetails);
    }

    /**
     * 批量删除考试结果
     * 
     * @param ids 需要删除的考试结果主键
     * @return 结果
     */
    @Override
    public int deleteExamResultDetailsByIds(String ids)
    {
        return examResultDetailsMapper.deleteExamResultDetailsByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除考试结果信息
     * 
     * @param id 考试结果主键
     * @return 结果
     */
    @Override
    public int deleteExamResultDetailsById(Long id)
    {
        return examResultDetailsMapper.deleteExamResultDetailsById(id);
    }
}
